<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=GBK" />
	<title>新建项目</title>
	<link rel="stylesheet" type="text/css" href="${basePath }/style/reset.css" media="all" />
	<link rel="stylesheet" type="text/css" href="${basePath }/style/layout.css" media="all" />
	<link rel="stylesheet" type="text/css" href="${basePath }/style/invalid.css" media="all" />
	<link rel="stylesheet" type="text/css" href="${basePath }/style/style.css" media="all" />
	<script type="text/javascript" src="${basePath }/script/jquery-1.4.3.min.js"></script>
	<script type="text/javascript" src="${basePath }/script/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="${basePath }/script/jquery.tipTip.minified.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#main-nav-a-list").addClass("current");
			$("#main-nav li a.current").parent().find("ul").slideDown("slow"); 
		});
	</script>
	<script type="text/javascript" src="${basePath }/script/simpla.js"></script>
</head>
<body>
	<div id="body-wrapper">
		<!-- sidebar开始 -->
		<%@ include file="left.jsp" %>
		<!-- sidebar结束 -->
		<!-- main-content开始 -->
		<div id="main-content">
			<div class="content-box closed-box">
				<div class="content-box-header">
					<h3><a href="index.jspx">首页</a>&gt ${project.name}</h3>
				</div>
			</div>
			<!-- 里程碑开始 -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						<img width="16" height="16" align="absmiddle" class="tip" title="里程碑" src="images/milestone.png" alt="Milestone" />
						里程碑
					</h3>
				</div>
				<div class="content-box-content">
					<c:forEach items="${project.milestones}" var="milestone">
						<div class="issues done png_bg">
							<div>
								<a title="${milestone.name}" href="${basePath}/milestone.jspx?id=${milestone.id}">${milestone.name}</a>
							</div>
						</div>
						<c:forEach items="${milestone.issueses}" var="issues" >
							<div class="issues done png_bg">
								<div>
									<a title="${issues.title}" href="${basePath}/issues.jspx?id=${issues.id}">${issues.title}</a>
									<span>
										<a class="black" href="#">${issues.user.name}</a> 
										创建于  ${issues.createdate}
									</span>
								</div>
							</div>
						</c:forEach>
					</c:forEach>
				
					<div>
						<ul class="actions">
							<li><a id="newm" href="${basePath}/milestone!input.jspx?projectid=${id}" class="btn tip" title="添加里程碑"><img src="images/add.png" class="tip" title="添加里程碑" align="absmiddle" alt="Add" />添加里程碑</a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 里程碑结束 -->
			<!-- 任务开始 -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						<img width="16" height="16" class="tip" title="任务" align="absmiddle" src="images/task.png" alt="Task" />
						任务
					</h3>
				</div>
				<div class="content-box-content">
					<c:forEach items="${project.issueses}" var="issues">
						<c:if test="${issues.type == 1}">
							<div class="issues done png_bg">
								<div>
									<a title="${issues.title}" href="${basePath}/issues.jspx?id=${issues.id}">${issues.title}</a>
									<span>
										<a class="black" href="#">${issues.user.name}</a> 
										创建于 ${issues.createdate}
									</span>
								</div>
							</div>
						</c:if>
					</c:forEach>
					<div>
						<ul class="actions">
							<li><a id="newt" href="${basePath}/issues!input.jspx?projectid=${id}&type=1" class="btn tip" title="创建任务"><img src="images/add.png" align="absmiddle" alt="Add" />创建任务</a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 任务结束 -->
			<!-- 错误开始 -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						<img width="16" height="16" class="tip" title="错误" align="absmiddle" src="images/bug.png" alt="Bug" />
						错误
					</h3>
				</div>
				<div class="content-box-content">
					<c:forEach items="${project.issueses}" var="issues">
						<c:if test="${issues.type == 2}">
							<div class="issues done png_bg">
								<div>
									<a title="${issues.title}" href="${basePath}/issues.jspx?id=${issues.id}">${issues.title}</a>
									<span>
										<a class="black" href="#">${issues.user.name}</a> 
										创建于 ${issues.createdate}
									</span>
								</div>
							</div>
						</c:if>
					</c:forEach>
					<div>
						<ul class="actions">
							<li><a id="newb" href="${basePath}/issues!input.jspx?projectid=${id}&type=2" class="btn tip" title="报告错误"><img src="images/add.png" align="absmiddle" alt="Add" />报告错误</a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 错误结束 -->
			<!-- 想法开始 -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						<img width="16" height="16" class="tip" title="想法" align="absmiddle" src="images/idea.png" alt="Bug" />
						想法
					</h3>
				</div>
				<div class="content-box-content">
					<c:forEach items="${project.issueses}" var="issues">
						<c:if test="${issues.type == 3}">
							<div class="issues done png_bg">
								<div>
									<a title="${issues.title}" href="${basePath}/issues.jspx?id=${issues.id}">${issues.title}</a>
									<span>
										<a class="black" href="#">${issues.user.name}</a> 
										创建于 ${issues.createdate}
									</span>
								</div>
							</div>
						</c:if>
					</c:forEach>
					<div>
						<ul class="actions">
							<li><a id="newb" href="${basePath}/issues!input.jspx?projectid=${id}&type=3" class="btn tip" title="添加想法"><img src="images/add.png" align="absmiddle" alt="Add" />添加想法</a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 想法结束 -->
			<!-- 文档开始 -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						<img width="16" height="16" class="tip" title="文档" align="absmiddle" src="images/doc.png" alt="Doc" />
						文档
					</h3>
				</div>
				<div class="content-box-content">
					<c:forEach items="${project.documents}" var="document">
						<div class="issues done png_bg">
							<div>
								<a class="tip" title="${document.title}" href="${basePath}/document.jspx?id=${document.id}">${document.title}</a>
								<span>
									<c:if test="${document.updatedate == null}">
									创建于 ${document.createdate}
									</c:if>
									<c:if test="${document.updatedate != null}">
									修改于${document.updatedate}
									</c:if>
								</span>
							</div>
						</div>
					</c:forEach>
					<div>
						<ul class="actions">
							<li><a id="newd" href="${basePath}/document!input.jspx?projectid=${id}" class="btn tip" title="新建文档"><img src="images/add.png" align="absmiddle" alt="Add" />新建文档</a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 文档结束 -->
			<%@include file="foot.jsp" %>
		</div>
		<!-- main-content结束 -->
	</div>
</body>
</html>
